<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/20
 * Time: 15:43
 */
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class PercentageRoles extends Model
{
    protected $table = 'percentage_roles';
    protected $fillable = [
        'id',
        'role_name',
        'Royalty_ratio',
        'details'
    ];
    public $timestamps = false;

    /**
     * 获取全部提成角色信息
     */
    public function get_all()
    {
        $data = $this->get()->toArray();
        if ($data){
            return $data;
        } else {
            return false;
        }
    }
}